package cn.hebutrun.oulabot.service.impl;

import cn.hebutrun.oulabot.common.Constants;
import cn.hebutrun.oulabot.common.util.BotUtil;
import cn.hebutrun.oulabot.entity.response.BotMessageResponse;
import cn.hebutrun.oulabot.service.IPicService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

/**
 * @author zhaolong
 * @since 2022-10-10
 */
@Service
public class PicServiceImpl implements IPicService {
  @Override
  public void getOrderQRCode(BotMessageResponse botMessageResponse, String order) {
    if ("面乡".equals(order)) {
      order = "山西面乡";
    }
    BotUtil.sendMessage(
        botMessageResponse, StrUtil.format(Constants.IMG_EXPRESSION, order + ".jpg"));
  }
}
